/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hazardsource.service.api;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import com.koron.common.bean.StaffBean;
import com.koron.hazardsource.domain.CheckListEntry;

public interface CheckListService {
	
	MessageBean<?> saveCheckListDraft(List<CheckListEntry> beanList,StaffBean user);
	
	MessageBean<?> submitCheckEntryItem(List<CheckListEntry> beanList, StaffBean user,String title,String note);
	
	MessageBean<?> discard(List<String> idList, StaffBean user,String title, String note);
	
	MessageBean<?> detailsByCode(String code);
	
	List<CheckListEntry> list(String table,String businessTypeId,String name,String checklistEntryTypeId,Integer start,Integer rows);
	
	Integer count(String table,String businessTypeId,String name,String checklistEntryTypeId);
	
	CheckListEntry details(String tableName,String itemTable,String id);
	
	MessageBean<?> importExcel(StaffBean user,String checkCode, String checklistEntryTypeId,String businessTypeId,String title,String note,MultipartFile file);
	
	MessageBean<?> getDraftList(StaffBean user);
	
	MessageBean<?> getProcessData(String ids);
	
	MessageBean<?> getHistoryList(String code);
	
	MessageBean<?> deleteDraft(String id);
	
}
